package com.itcam.service.impl;

import com.itcam.service.Calculator;
import org.springframework.stereotype.Component;

/**
 * 目标类
 * <p>
 * aop - 只针对ioc容器的对象 - 创建代理对象 - 代理对象存储到ioc容器
 */
@Component
public class CalculatorPureImpl_1 {


    public int add(int i, int j) {

        int result = i + j;

        return result;
    }


    public int sub(int i, int j) {

        int result = i - j;

        return result;
    }


    public int mul(int i, int j) {

        int result = i * j;

        return result;
    }


    public int div(int i, int j) {

        int result = i / j;

        return result;
    }
}